package com.amigo.online.provider.user.service;

import com.amigo.online.common.core.service.IService;
import com.amigo.online.provider.user.model.entity.VerificationCode;

public interface VerificationCodeService extends IService<VerificationCode> {

    /**
     * @param mobilephone
     * @param countryCode
     * @param type
     * @return
     */
    boolean sendSmsCode(String mobilephone, String countryCode, Integer type);

    /**
     * 验证验证码
     *
     * @param mobilephone
     * @param countryCode
     * @param code
     * @param type
     * @return
     */
    boolean checkSmsCode(String mobilephone, String code, Integer type);

    /**
     * 获取手机号国家代码
     *
     * @param mobilephone
     * @param code
     * @param type
     * @return
     */
    String getMobilephoneCountryCode(String mobilephone, String code, Integer type);

    /**
     * 修改用户密码短信验证码接口
     *
     * @return
     */
    boolean sendSmsForUserUpdatePassword();

    String checkSmsCodeAndGetCountryCode(String flag, String code, int i);
}
